<hr />
<h2> Select Existing One </h2> 
<p>It allows to select already register site manager as active manger of related Rental property</p>

<div class="form">
<?php 

$managerlist = array();
		foreach(Sitemanager::model()->findAll() as $manager){
		  $managerlist[$manager->id] = $manager->SiteFirstName.' '.$manager->SiteLastName;
		}

$form=$this->beginWidget('CActiveForm', array(
	'id'=>'sitemgr-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Site Manager Name'); ?>
		<?php echo $form->dropDownList($model,'id',$managerlist, array('prompt'=>'Choose')); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Save'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->

